<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Iframe</title>
    <style>
      iframe {
        width: 100%;
        /* height: 100vh; */
      }
    </style>
    <script src="./iframeResizer.js"></script>
    <script src="./iframeResizer.contentWindow.js"></script>
  </head>
  <body>
    <iframe
      id="myIframe"
      src="https://juejin.cn/search?query=iframe%20%E8%87%AA%E5%8A%A8%E9%AB%98%E5%BA%A6"
    ></iframe>

    <script>
      iFrameResize({ log: true }, '#myIframe')
    </script>
  </body>
</html>
